package admin

import (
	"context"
	"server/internal/service"

	"server/api/admin/system"
)

func (c *ControllerSystem) CrontabCategoryDelete(ctx context.Context, req *system.CrontabCategoryDeleteReq) (res *system.CrontabCategoryDeleteRes, err error) {
	res = new(system.CrontabCategoryDeleteRes)
	res.Result, err = service.SystemCrontabCategory().DeleteByID(ctx, req.ID)
	return
}
